Improve error from xcalloc().
authorrobertl <robertl>
Tue, 20 Nov 2007 04:31:06 +0000 (04:31 +0000)
committerrobertl <robertl>
Tue, 20 Nov 2007 04:31:06 +0000 (04:31 +0000)
util.c

diff --git a/util.c b/util.c
index fc3e74e21b2aaaaeda6cbfed7f046ccc39dc5d24..a6f89c2b3111be18fb7a885fd85a70597ff5531f 100644 (file)
--- a/util.c
+++ b/util.c
@@ -101,7 +101,7 @@ xcalloc(size_t nmemb, size_t size)
 #endif
 
        if (!obj) {
-               fatal("gpsbabel: Unable to allocate %ld bytes of memory.\n", (unsigned long) size);
+               fatal("gpsbabel: Unable to allocate %ld units of %ld bytes of memory.\n", (unsigned long) nmemb, (unsigned long) size);
        }
 
        return obj;